home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Devices and Hardware / ADB / ControlKeyPatch / MakeFile < prev    next >
Encoding:
Makefile  |  2000-09-28  |  2.7 KB  |  77 lines  |  [TEXT/MPS ]

  1. #    File:        ControlKeyTest.r
  2. #    
  3. #    Description: 
  4. #             routines for patching the ADB manager to simulate the control
  5. #            key being held down.  This file contains MPW make commands
  6. #            for building the ControlKeyTest application.
  7. #
  8. #    Author:    John Montbriand
  9. #
  10. #    Copyright: 
  11. #            Copyright © 1999 by Apple Computer, Inc.
  12. #            All rights reserved worldwide.
  13. #    
  14. #    Disclaimer:
  15. #            You may incorporate this sample code into your applications without
  16. #            restriction, though the sample code has been provided "AS IS" and the
  17. #            responsibility for its operation is 100% yours.  However, what you are
  18. #            not permitted to do is to redistribute the source as "DSC Sample Code"
  19. #            after having made changes. If you're going to re-distribute the source,
  20. #            we require that you make it clear in the source that the code was
  21. #            descended from Apple Sample Code, but that you've made changes.
  22. #    
  23. #    Change History (most recent first):
  24. #            27/8/99 created by John Montbriand
  25. #
  26.  
  27. ControlKeyTest ƒƒ ControlKeyTest.r :obj:ControlKeyPatch.rsrc ControlKeyTest.rsrc ∂
  28.                 :obj:ControlKeyPatch.c.68k :obj:ControlKeyTest.c.68k ∂
  29.                 :obj:ControlKeyPatch.c.ppc :obj:ControlKeyTest.c.ppc
  30.     Rez -t "APPL" -i "{RIncludes}" -o ControlKeyTest ControlKeyTest.r
  31.  
  32. ControlKeyTest ƒƒ ControlKeyTest.r :obj:ControlKeyPatch.c.68k :obj:ControlKeyTest.c.68k
  33.     Link -o ControlKeyTest -t "APPL" -sym off ∂
  34.         :obj:ControlKeyPatch.c.68k ∂
  35.         :obj:ControlKeyTest.c.68k ∂
  36.         {Libraries}Interface.o ∂
  37.         {Libraries}MacRuntime.o
  38.  
  39. :obj:ControlKeyPatch.c.68k ƒ ControlKeyPatch.h ControlKeyPatch.c
  40.     SC ControlKeyPatch.c -o :obj:ControlKeyPatch.c.68k
  41.  
  42. :obj:ControlKeyTest.c.68k ƒ ControlKeyTest.c ControlKeyPatch.h
  43.     SC ControlKeyTest.c -o :obj:ControlKeyTest.c.68k
  44.  
  45. ControlKeyTest ƒƒ ControlKeyTest.r :obj:ControlKeyPatch.c.ppc :obj:ControlKeyTest.c.ppc
  46.     PPCLink -t 'APPL' -o ControlKeyTest ∂
  47.         -weak AppearanceLib ∂
  48.         :obj:ControlKeyPatch.c.ppc ∂
  49.         :obj:ControlKeyTest.c.ppc ∂
  50.         {SharedLibraries}AppearanceLib ∂
  51.         {SharedLibraries}InterfaceLib ∂
  52.         {SharedLibraries}StdCLib ∂
  53.         {SharedLibraries}MathLib ∂
  54.         {PPCLibraries}PPCCRuntime.o ∂
  55.         {PPCLibraries}StdCRuntime.o ∂
  56.         {PPCLibraries}PPCToolLibs.o
  57.  
  58. :obj:ControlKeyPatch.c.ppc ƒ ControlKeyPatch.h ControlKeyPatch.c
  59.     MrC ControlKeyPatch.c -o :obj:ControlKeyPatch.c.ppc
  60.  
  61. :obj:ControlKeyTest.c.ppc ƒ ControlKeyTest.c ControlKeyPatch.h
  62.     MrC ControlKeyTest.c -o :obj:ControlKeyTest.c.ppc
  63.  
  64. :obj:ControlKeyPatch.rsrc ƒ :obj:ControlKeyPatch.a.o
  65.     Link -w -rn -o :obj:ControlKeyPatch.rsrc ∂
  66.         -t rsrc -c RSED ∂
  67.         -sg ControlKeyPatch ∂
  68.         -rt PROC=128 ∂
  69.         :obj:ControlKeyPatch.a.o ∂
  70.         {Libraries}MacRuntime.o ∂
  71.         {Libraries}Interface.o ∂
  72.         {CLibraries}StdCLib.o ∂
  73.         {Libraries}IntEnv.o
  74.  
  75. :obj:ControlKeyPatch.a.o ƒ ControlKeyPatch.a
  76.     Asm -wb ControlKeyPatch.a -o :obj:ControlKeyPatch.a.o
  77.